package com.jeegit.ecms.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.jeegit.common.annotation.Excel;
import com.jeegit.common.core.domain.BaseEntity;

/**
 * 首页横幅对象 cms_banners
 * 
 * @author jeegit
 * @date 2022-07-05
 */
public class CmsBanners extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编码 */
    private Long id;

    /** 栏目编码 */
    @Excel(name = "栏目编码")
    private Long categoryId;
    
    
    private String categoryName;
    
    private String dictModuleType;
    public void setDictModuleType(String dictModuleType) 
    {
        this.dictModuleType = dictModuleType;
    }

    public String getDictModuleType() 
    {
        return dictModuleType;
    }
    

    public String getCategoryName() {
		return categoryName;
	}

	public void setCategoryName(String categoryName) {
		this.categoryName = categoryName;
	}

	/** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 颜色 */
    @Excel(name = "颜色")
    private String color;

    /** 关键词 */
    @Excel(name = "关键词")
    private String keywords;

    /** 外部链接 */
    @Excel(name = "外部链接")
    private String href;

    /** 推荐位 */
    @Excel(name = "推荐位")
    private String dictBannerPosition;

    /** 图片 */
    @Excel(name = "图片")
    private String src;

    /** 背景 */
    @Excel(name = "背景")
    private String background;

    /** 样式类 */
    @Excel(name = "样式类")
    private String cssClass;

    /** 样式 */
    @Excel(name = "样式")
    private String cssStyle;

    /** 标签 */
    @Excel(name = "标签")
    private String tags;

    /** 描述 */
    @Excel(name = "描述")
    private String description;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date beginTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 排序 */
    @Excel(name = "排序")
    private BigDecimal sort;

    /** 状态（0正常 1删除 2停用） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=删除,2=停用")
    private String status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCategoryId(Long categoryId) 
    {
        this.categoryId = categoryId;
    }

    public Long getCategoryId() 
    {
        return categoryId;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setColor(String color) 
    {
        this.color = color;
    }

    public String getColor() 
    {
        return color;
    }
    public void setKeywords(String keywords) 
    {
        this.keywords = keywords;
    }

    public String getKeywords() 
    {
        return keywords;
    }
    public void setHref(String href) 
    {
        this.href = href;
    }

    public String getHref() 
    {
        return href;
    }
    public void setDictBannerPosition(String dictBannerPosition) 
    {
        this.dictBannerPosition = dictBannerPosition;
    }

    public String getDictBannerPosition() 
    {
        return dictBannerPosition;
    }
    public void setSrc(String src) 
    {
        this.src = src;
    }

    public String getSrc() 
    {
        return src;
    }
    public void setBackground(String background) 
    {
        this.background = background;
    }

    public String getBackground() 
    {
        return background;
    }
    public void setCssClass(String cssClass) 
    {
        this.cssClass = cssClass;
    }

    public String getCssClass() 
    {
        return cssClass;
    }
    public void setCssStyle(String cssStyle) 
    {
        this.cssStyle = cssStyle;
    }

    public String getCssStyle() 
    {
        return cssStyle;
    }
    public void setTags(String tags) 
    {
        this.tags = tags;
    }

    public String getTags() 
    {
        return tags;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setBeginTime(Date beginTime) 
    {
        this.beginTime = beginTime;
    }

    public Date getBeginTime() 
    {
        return beginTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }
    public void setSort(BigDecimal sort) 
    {
        this.sort = sort;
    }

    public BigDecimal getSort() 
    {
        return sort;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("categoryId", getCategoryId())
            .append("title", getTitle())
            .append("color", getColor())
            .append("keywords", getKeywords())
            .append("href", getHref())
            .append("dictBannerPosition", getDictBannerPosition())
            .append("src", getSrc())
            .append("background", getBackground())
            .append("cssClass", getCssClass())
            .append("cssStyle", getCssStyle())
            .append("tags", getTags())
            .append("description", getDescription())
            .append("beginTime", getBeginTime())
            .append("endTime", getEndTime())
            .append("sort", getSort())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
